package com.wft.chapter04;

public class 等腰三角形 {

    public static void main(String[] args) {
        print(1);
        print(2);
        print(3);
        print(4);
        print(5);
        print(6);
    }

    public static void print(int n){
        for (int i = 0,j=1; i < n; i++,j=j+2) {
            for (int l = 0;l < n - i;l++){
                System.out.print(" ");
            }
            for (int k = 0; k < j ; k++) {
                System.out.print("*");
            }
            System.out.println("");
//            for (int k = j; k <= j; k++) {
//
//            }

        }
    }
}
